package cn.snow.boot.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Wanxiang Liu
 * @version 2018/9/15.
 */
@Configuration
public class RabbitConfig {

    @Bean
    public Queue queue1() {
        return new Queue("phone");
    }

    @Bean
    public Queue queue2() {
        return new Queue("email");
    }

}
